//
//  ResetPasswdRequest.m
//  EasyToo
//
//  Created by YuanDee on 13-8-24.
//
//  会员注册

#import "ResetPasswdRequest.h"

@implementation ResetPasswdRequest

- (id)initWithTelephone:(NSString *)telephone Password:(NSString *)password CardId:(NSString *)cardId
                apiCode:(NSString*)apiCode Delegate:(id<ServerCommunicationDelegate>)delegate
{
    self = [super init];
    if (self) {
        self.telephone = telephone;
        self.password = password;
        self.cardId = cardId;
        self.delegate = delegate;
        self.requestName = @"ResetPasswdResponse";
        [self.headerJsonDict setObject:@"999001" forKey:@"TranCode"];
        
        [self.bodyJsonDict setObject:self.telephone forKey:@"ids"];
        [self.bodyJsonDict setObject:self.telephone forKey:@"mbrName"];
        [self.bodyJsonDict setObject:self.telephone forKey:@"mbrTel"];
        [self.bodyJsonDict setObject:self.password forKey:@"password"];
        [self.bodyJsonDict setObject:@"999001" forKey:@"TranCode"];
        [self.bodyJsonDict setObject:apiCode forKey:@"apiCode"];
        
        [self buildJsonRequest];
    }
    return self;
}

- (void)dealloc
{
    self.telephone = nil;
    self.password = nil;
    self.cardId = nil;
    [super dealloc];
}

@end
